EXEC     = ledscreen
OBJS     = getinmemory.o

STAGEDIR = /home/magee/project/rt-n56u/trunk/stage
CC       = /home/magee/project/rt-n56u/toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc
CFLAGS  += -I$(STAGEDIR)/include
CFLAGS  += -Wall -ffunction-sections -fdata-sections
LDFLAGS += -L/home/magee/project/rt-n56u/trunk/stage/lib
LDFLAGS += -Wl,--gc-sections
LIBS     = -lusb-1.0 -lpthread -lcurl

all: $(EXEC)

$(EXEC): $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

romfs:
	$(ROMFSINST) /usr/bin/$(EXEC)

clean:
	-rm -f $(EXEC) *.o
